class Point:
    def __init__(self,x,y):
        self.x = x
        self.y = y
    def __eq__(self, other):
        if self.x == other.x and self.y == other.y:
            return True
        else:
            return False
    def __hash__(self):
        return hash((self.x,self.y))

    def __repr__(self):
        return "({},{})".format(self.x,self.y)

p1 = Point(4,5)
p2 = Point(5,6)
p3 = Point(4,5)
print(p1 == p3)
print(p1 == p2)
print(hash(p1), hash(p2))
